<ion-view id="myinfo-view" hide-nav-bar="true" view-title="和护健康"  id="myself">

  <ion-header-bar align-title="center" class="head">
    <img wf-src="img/yuyue/back.png" class="headleft" ng-click="back()"/>
    <h1 class="min-title">我的资料</h1>
    <!--<img wf-src="img/common/Rectangle.png" class="headright" on-tap="toEdit()" ng-if="!editing"/>-->
    <div class="buttons" style="position: absolute;right:10px;border: none">
      <button class="button " style="background: transparent;color: white;font-size: 16px" on-tap="commitEdit()" ng-if="editing">完成</button>
    </div>
  </ion-header-bar>

  <ion-content>
    <div class="yyfw shadow-box" ng-if="!editing">
      <div class="inyw">
        <label class="inleft">姓名</label>
        <label class="inright">{{crew.name}}</label>
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">技能</label>
        <label class="inright">{{crew.skill?crew.skill:'-'}}</label>
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">性质</label>
        <label class="inright">{{crew.type?crew.type:'-'}}</label>
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">住址</label>
        <label class="inright">{{crew.addr?crew.addr:'-'}}</label>
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">状态</label>
        <label class="inright">{{crew.status?crew.status:'-'}}</label>
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">身份证</label>
        <label class="inright">{{crew.idNo?crew.idNo:'-'}}</label>
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">手机</label>
        <label class="inright">{{crew.tel?crew.tel:'-'}}</label>
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">生日</label>
        <label class="inright">{{crew.birthday?crew.birthday:'-'| date:'yyyy-MM-dd'}}</label>
        <hr class="inhr"/>
      </div>
    </div>

    <div class="yyfw shadow-box" ng-if="editing">
      <div class="inyw">
        <label class="inleft">姓名</label>
        <input class="eidtRight" placeholder="请在这里输入" ng-model="commit.name" />
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">性别</label>
        <input class="eidtRight" placeholder="请在这里输入" ng-model="commit.gender" />
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">手机</label>
        <input class="eidtRight" placeholder="请在这里输入" ng-model="commit.tel" />
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">生日</label>
        <label class="inright" ng-click="openDatePickerS()"> {{commit.birthday| date:'yyyy-MM-dd'}}</label>
        <hr class="inhr"/>
      </div>
      <div class="inyw">
        <label class="inleft">身份证</label>
        <input class="eidtRight" placeholder="请在这里输入" ng-model="commit.idNo" />
        <hr class="inhr"/>
      </div>
    </div>
    <!--<div class="yyfw shadow-box">-->
      <!--<div class="sfzzy">身份证正面</div>-->
      <!--<div class="sfzk">-->
        <!--<span class="ion-plus"></span>-->
      <!--</div>-->
    <!--</div>-->
    <!--<div class="yyfw shadow-box">-->
      <!--<div class="sfzzy">身份证反面</div>-->
      <!--<div class="sfzk">-->
        <!--<span class="ion-plus"></span>-->
      <!--</div>-->
    <!--</div>-->
  </ion-content>
</ion-view>

